package com.one.service;

import com.one.bean.Orders;
import com.one.vo.OrderVo;

import java.util.List;

/**
 * @Author ShiWen
 * @date 2022/1/17 18:40
 * @Version 1.0
 * @Description TODO 查询订单的业务接口
 */
public interface QueryOrderService {
    /**
     * @description 查询所有订单
     * @author ShiWen
     * @date 2022/1/18 9:01
     */
    List<Orders> queryAllOrder(Integer userId);
    /**
     * @description 根据订单状态查询所有订单
     * @author ShiWen
     * @date 2022/1/18 9:01
     */
    List<Orders> queryOrderByStatus(Integer userId,Integer status);

    /**
     * @description 根据订单id查询订单
     * @author ShiWen
     * @date 2022/1/18 12:00
     */
    OrderVo queryOrderById(Integer userId,Integer orderId);
    /**
     * @description 根据订单号查询订单
     * @author ShiWen
     * @date 2022/1/18 12:00
     */
    OrderVo queryOrderByNo(String orderNo);

    /**
     * @description 插入订单快递单号
     * @author ShiWen
     * @date 2022/1/19 9:28
     */
    int insertExpressNo(String orderNo,String expressNo);
}
